# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 6
_modified_time = 1317990225.592495
_template_filename='/home/wolfking/workspace/tornado/Soy/application/views/profile/edit_profile.html'
_template_uri='/profile/edit_profile.html'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from whirlwind.view.filters import Filters, Cycler
_exports = ['lhs', 'scripts']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, u'/layouts/content.html', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        __M_writer = context.writer()
        # SOURCE LINE 2
        __M_writer(u'\n')
        # SOURCE LINE 3
        __M_writer(u'\n')
        # SOURCE LINE 67
        __M_writer(u'\n\n')
        # SOURCE LINE 70
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_lhs(context):
    context.caller_stack._push_frame()
    try:
        username = context.get('username', UNDEFINED)
        mylocale = context.get('mylocale', UNDEFINED)
        mytimezone = context.get('mytimezone', UNDEFINED)
        myimg = context.get('myimg', UNDEFINED)
        locale_list = context.get('locale_list', UNDEFINED)
        timezone_list = context.get('timezone_list', UNDEFINED)
        _ = context.get('_', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 4
        __M_writer(u'\n<div style="margin-bottom: 15px; margin-left:10px">\n    <h1>')
        # SOURCE LINE 6
        __M_writer(unicode(username))
        __M_writer(u'\'s profile</h1>\n</div>\n<div>\n    <img id="myimg" src="')
        # SOURCE LINE 9
        __M_writer(unicode(myimg))
        __M_writer(u'"/>\n    To upload and edit your avatar. Sign Up/Login in <a href="http://en.gravatar.com/" target="_blank">gravatar.com</a>.\n    The email you used should be consistent with the email you registered here.\n</div>\n<div>\n    <form action="/profile/edit" method="post"> \n            <div class="field">\n                    <label for="username" class="label">\n                        ')
        # SOURCE LINE 17
        __M_writer(_(unicode("username" )))
        __M_writer(u'\n                    </label>\n                    <div class="input">\n                        <input type="text" id="username" name="username" value="')
        # SOURCE LINE 20
        __M_writer(unicode(username))
        __M_writer(u'"/>\n                    </div>\n            </div>\n            \n            <div class="field">\n                    <label for="locale" class="label">\n                        ')
        # SOURCE LINE 26
        __M_writer(_(unicode("language" )))
        __M_writer(u'\n                    </label>\n                    <div class="input">\n                        <select id="locale" name="locale">\n')
        # SOURCE LINE 30
        for alocale in locale_list:
            # SOURCE LINE 31
            if alocale == mylocale:
                # SOURCE LINE 32
                __M_writer(u'                            <option value="')
                __M_writer(unicode(alocale))
                __M_writer(u'" selected="selected"> ')
                __M_writer(unicode(alocale))
                __M_writer(u' </option>\n')
                # SOURCE LINE 33
            else:
                # SOURCE LINE 34
                __M_writer(u'                            <option value="')
                __M_writer(unicode(alocale))
                __M_writer(u'"> ')
                __M_writer(unicode(alocale))
                __M_writer(u' </option>\n')
                pass
            pass
        # SOURCE LINE 37
        __M_writer(u'                        </select>\n                    </div>\n            </div>\n\n            <div class="field">\n                    <label for="timezone" class="label">\n                        ')
        # SOURCE LINE 43
        __M_writer(_(unicode("timezone" )))
        __M_writer(u'\n                    </label>\n                    <div class="input">\n                        <select id="timezone" name="timezone">\n')
        # SOURCE LINE 47
        for atimezone in timezone_list:
            # SOURCE LINE 48
            if atimezone == mytimezone:
                # SOURCE LINE 49
                __M_writer(u'                            <option value="')
                __M_writer(unicode(atimezone))
                __M_writer(u'" selected="selected"> ')
                __M_writer(unicode(atimezone))
                __M_writer(u' </option>\n')
                # SOURCE LINE 50
            else:
                # SOURCE LINE 51
                __M_writer(u'                            <option value="')
                __M_writer(unicode(atimezone))
                __M_writer(u'"> ')
                __M_writer(unicode(atimezone))
                __M_writer(u' </option>\n')
                pass
            pass
        # SOURCE LINE 54
        __M_writer(u'                        </select>\n                    </div>\n            </div>\n\n            <div class="buttons">\n                <input type="submit" value="')
        # SOURCE LINE 59
        __M_writer(_(unicode('Save' )))
        __M_writer(u'" class="button" />\n            </div>\n    </form>\n</div>\n<div>\n    <a href="/profile/editinterests">Edit My Interests</a>\n    <a href="/profile/addapi">Add APIs</a>\n</div>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_scripts(context):
    context.caller_stack._push_frame()
    try:
        __M_writer = context.writer()
        # SOURCE LINE 69
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


